package com.iot08.api.controller;

import com.iot08.api.controller.base.BaseController;
import com.iot08.api.service.GoldCoinBuyerOrderService;
import com.iot08.api.vo.request.GoldCoinBuyerOrderQueryReqVo;
import com.iot08.common.utils.response.ResponseMap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;

/**
 * @author cwj 金币支付订单查询
 * @description
 * @date 2025/3/27 9:45
 **/
@RestController
@RequestMapping("getway/goldCoinBuyerOrder")
@Slf4j
public class GoldGoinBuyerOrderController extends BaseController {

    @Resource
    private GoldCoinBuyerOrderService goldCoinBuyerOrderService;


    /**
     * @description 查询金币套餐信息
     * @author cwj
     * @param [vo]
     * @return com.iot08.common.utils.response.ResponseMap
     * @date @time 2025/3/6 9:39
     **/
    @GetMapping("/query")
    public ResponseMap queryGoldCoinBuyerOrder(@Validated GoldCoinBuyerOrderQueryReqVo vo) throws ParseException {
        return goldCoinBuyerOrderService.queryGoldCoinBuyerOrder(vo);
    }


}
